// TestEventSink.cpp : implementation file
//

#include "stdafx.h"
#include "SpeedOrder.h"
#include "TestEventSink.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CTestEventSink

IMPLEMENT_DYNCREATE(CTestEventSink, CCmdTarget)

CTestEventSink::CTestEventSink()
{
	EnableAutomation();
}

CTestEventSink::~CTestEventSink()
{
}


void CTestEventSink::OnFinalRelease()
{
	// When the last reference for an automation object is released
	// OnFinalRelease is called.  The base class will automatically
	// deletes the object.  Add additional cleanup required for your
	// object before calling the base class.

	CCmdTarget::OnFinalRelease();
}


BEGIN_MESSAGE_MAP(CTestEventSink, CCmdTarget)
	//{{AFX_MSG_MAP(CTestEventSink)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(CTestEventSink, CCmdTarget)
	//{{AFX_DISPATCH_MAP(CTestEventSink)
	DISP_FUNCTION(CTestEventSink, "OnPriceChanged", OnPriceChanged, VT_EMPTY, VTS_NONE)
	//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// Note: we add support for IID_ITestEventSink to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {292451EB-B865-419E-B403-64CAF9197689}
static const IID IID_ITestEventSink =
{ 0x292451eb, 0xb865, 0x419e, { 0xb4, 0x3, 0x64, 0xca, 0xf9, 0x19, 0x76, 0x89 } };

BEGIN_INTERFACE_MAP(CTestEventSink, CCmdTarget)
	INTERFACE_PART(CTestEventSink, IID_ITestEventSink, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTestEventSink message handlers

void CTestEventSink::OnPriceChanged() 
{
	// TODO: Add your dispatch handler code here

}
